import request from '@/router/axios';
import config from '@/config/website'
//产品信息
export const designList = (current, size, equipment) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/page',
        method: 'get',
        params: {
            current,
            size,
            ...equipment
        }
    })
}
export const designSave = (data) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/save',
        method: 'post',
        data
    })
}
export const designUpdate = (data) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/update',
        method: 'post',
        data
    })
}
export const designDel = (ids) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/remove',
        method: 'post',
        params: {
            ids
        }
    })
}
export const designView = (id) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/detail',
        method: 'get',
        params: {
            id
        }
    })
}
//项目列表
export const designProjectList = () => {
    return request({
        url: '/api/hg-public/projectinfo/findAll',
        method: 'get',
    })
}
//提交
export const designSubmit = (id) => {
    return request({
        url: '/api/blade-sale/hg_sale/salePlanChange/start-process',
        method: 'post',
        params: {
            id,
        }
    })
}

//部门列表
export const getDeptList = () => {
  return request({
    url: '/api/blade-system/dept/getAllDepts',
    method: 'get',
  })
}
